﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SRPCENTRIA
{
    public partial class wsError : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["CurrentError"] != null)
            {
                Exception ep = (Exception)Session["CurrentError"];
                lblinner.Text = ep.InnerException.Message;
                lblmensaje.Text = ep.Message;
                lblStack.Text = ep.StackTrace;
                lblsource.Text = ep.Source;
            }
            else 
            {
                lblmensaje.Text = "Ocurrió un error en el sistema";

            }
            Session.RemoveAll();
            Session.Clear();
        }

        protected void btninicio_Click(object sender, EventArgs e)
        {
            Response.Redirect("wsLogin.aspx");
        }
    }
}